<template>
  <div>
    <NavBar />
    <div class="app-main">
      <router-view v-slot="{ Component }">
        <transition name="fade" mode="out-in">
          <component :is="Component" :key="$route.path" />
        </transition>
      </router-view>
    </div>
  </div>
</template>

<script lang="ts" setup>
import NavBar from "./NavBar.vue";
</script>

<style lang="less" scoped></style>
